package com.mayikt.service;

import com.mayikt.base.BaseResponse;
import com.mayikt.dto.resp.OrderRspDto;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;


public interface OrderService {

    /**
     * 新增order
     *
     * @return
     */
    @GetMapping("/addOrder")
    BaseResponse<String> addOrder();

    /**
     * 根据订单号码查询
     *
     * @param orderId
     * @return
     */
    @GetMapping("/findByOrderId")
    BaseResponse<OrderRspDto> findByOrderId(Long orderId);

    /**
     * 查询所有的订单
     *
     * @return
     */
    @GetMapping("/listOrderId")
    List<String> listOrderId();
}
